<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
        <title>宋濟川地產</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>">
<meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>">
        <link href="/sjc/Public/Index/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="/sjc/Public/Index/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="/sjc/Public/Index/dist/css/swiper.min.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="/sjc/Public/Index/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto[gallery2] main stylesheet" charset="utf-8" />
        <link href="/sjc/Public/Index/css/sjc.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<!-- 头部 -->
	        <div class="top"><div class="logo"><img src="/sjc<?php echo get_cover($logo['logo1'],$field = path);?>"></div></div>
        <div class="col-nav text-center">
            <div class="col-md-12 nav-btn text-center"><span>首頁</span><i class="fa fa-bars nav-ico"></i></div>
            <ul>
                <li class="active"><a href="<?php echo U('Index/index');?>">首頁</a></li>
                <li><a href="<?php echo U('About/index');?>">關於我們</a></li>
                 <li><a href="<?php echo U('Market/index');?>">市場動態</a></li>
                <li><a href="<?php echo U('Search/index');?>">樓盤信息</a></li>
                <li><a href="<?php echo U('Contact/index');?>">聯繫我們</a></li>
            </ul>
        </div>
	<!-- /头部 -->
	
	<!-- 主体 -->
 <div class="deatail">
            <div class="container">
                <div class="col-md-6 p-0">
                    <div class="swiper-container swiper1">
                            <div class="swiper-wrapper fleft gallery clearfix">
                                <?php if(is_array($photo)): foreach($photo as $key=>$val): ?><div class="swiper-slide h-325 load-i"><a href="/sjc<?php echo (get_cover($val,'path')); ?>"  rel="prettyPhoto[gallery2]"><img src="/sjc<?php echo (get_cover($val,'path')); ?>"></a></div><?php endforeach; endif; ?>
                            </div>
                            <div class="swiper-button-next swiper-button-next1"><i class="fa fa-angle-right slide-ico"></i></div>
                            <div class="swiper-button-prev swiper-button-prev1"><i class="fa fa-angle-left slide-ico"></i></div>
                   </div>
                </div>
                <div class="col-md-6 h-325 bg load-h">
                     <div class="market-title">
                            <div class="col-md-6 col-xs-8">
                                        <h3><a><?php echo ($data["title"]); ?></a><span>
                                                <?php if($data["selltype"] == 1): ?>出租
                                                    <?php else: ?>
                                                    出售<?php endif; ?>
                                    </span></h3>
                            </div>
                            <div class="col-md-6 col-xs-4 text-right title-right"><?php echo ($data["unit_price"]); echo ($data["prices2"]); ?></div>
                        </div>
                       <p>
                       <?php echo ($data["description"]); ?>
                        </p>
                        <p class="col-md-8 col-xs-8 p-0 area">
                            面積：<span><?php echo ($data["area"]); echo ($data["unit_area"]); ?></span>
                        </p>
                        <p class="col-md-8 col-xs-8 p-0 area">
                             房型：<span><?php echo ($data["shi"]); ?></span>室<span><?php echo ($data["ting"]); ?></span>廳<span><?php echo ($data["wei"]); ?></span>衛
                        </p>
                        
                    <div class="col-md-12 col-xs-12 p-0"><span class="call"><i class="fa fa-phone call-ico"></i></span><span class="call-font"><?php echo ($data["tel"]); ?></span></div>
                    <div class="col-md-12 text-right"> <span class="contact-bg f-bg"><i class="fa fa-facebook c-e-j"></i></span><span class="contact-bg wx-bg"><i class="fa fa-weixin c-e-j"></i></span></div> 
                </div>
                <div class="introduction">
                   <h3>物業簡介</h3>
                   <p><?php echo ($data["content"]); ?></p>
              
                </div> 
               <div class="similar-li fleft gallery clearfix">
                   
                   <div class="col-md-12"> <h3>外景圖</h3></div>
                   <?php if(is_array($photo2)): foreach($photo2 as $key=>$val): ?><div class="col-md-4">
                            <div class="h-207">
                                <a href="/sjc<?php echo (get_cover($val,'path')); ?>"  rel="prettyPhoto[gallery2]"><img src="/sjc<?php echo (get_cover($val,'path')); ?>"></a>
                             </div>
                    
                        </div><?php endforeach; endif; ?>
                       
                    
           
                
             
                   
                   <div class="col-md-12"><h3>內景圖</h3></div>
                 
                                  <?php if(is_array($photo3)): foreach($photo3 as $key=>$val): ?><div class="col-md-4">
                            <div class="h-207">
                                <a href="/sjc<?php echo (get_cover($val,'path')); ?>"  rel="prettyPhoto[gallery2]"><img src="/sjc<?php echo (get_cover($val,'path')); ?>"></a>
                             </div>
                    
                        </div><?php endforeach; endif; ?>
                       
                    
           
                          
                </div>    
                <div class="col-md-12 map">
                    <div>  
                    <img src="/sjc/Public/Index/images/map.png">
                    <a class="map-btn" data-toggle="modal" data-target="#myModal" data-to="<?php echo ($map[0]); ?>" data-po="<?php echo ($map[1]); ?>">查看地圖</a>
                    </div> 
                </div>   
            </div>
        </div>
<!--聯繫我們-->
	         <div class="messge">
                <div class="messge_nav">聯繫我們</div>
                <div class="message_content">
                  <form action="<?php echo U('Index/update');?>" method="post" id="form_message">
                      <input type='hidden' name='title' value='留言板' id='post_title'>
                      <input type='hidden' name='category_id' value='48'>
                        <input type='hidden' name='model_id' value='10'>
                          <input type='hidden' name='type' value='2'>
                          <input type='hidden' name='description' value=''>
                    <input class="message_input " type="text" name="names" id='post_name' onfocus="if (value == '姓名') {
                          value = ''
                      }" onblur="if (value == '') {
                                  value = '姓名'
                              }" value="姓名" />
                    <input class="message_input" type="text" name="tel" onfocus="if (value == '電話') {
                                          value = ''
                                      }" onblur="if (value == '') {
                                                  value = '電話'
                                              }" value="電話" />
                    <input class="message_input" type="text" name="emails" onfocus="if (value == '郵箱') {
                                                          value = ''
                                                      }" onblur="if (value == '') {
                                                                  value = '郵箱'
                                                              }" value="郵箱" />
                    <textarea class="message_text_area" name="content"></textarea>
                    <input class="message_button" type="submit" value="發送" />
                  </form>
                </div>
              </div>
<script>
window.onload = function(){
    var name = document.getElementById('post_name');
    var title = document.getElementById('post_title');
    name.onblur = function(){
       title.value = "來自"+name.value+"的留言";
    }
}
</script>
<!--/聯繫我們-->
        <div class="col-md-12 copyright text-center"><?php echo C('WEB_COPYRIGHT');?></div>
        <a class="go-top"><i class="fa fa-angle-up"></i></a>
        <!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog map-modal">
    <div class="modal-content">
      
      <div class="modal-body m-b-0">
          <div class="gmap3"></div>
      </div>
      
    </div>
  </div>
</div>
            <?php echo C('GOOGLEANALYTICS');?>
        <script src="/sjc/Public/Index/js/jquery.min.js" type="text/javascript"></script>
        <script src="/sjc/Public/Index/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="/sjc/Public/Index/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script> 
        <script src="/sjc/Public/Index/dist/js/swiper.js" type="text/javascript"></script>
        <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
        <script src="/sjc/Public/Index/js/gmap3.min.js" type="text/javascript"></script>
        <script src="/sjc/Public/Index/js/sjc.js" type="text/javascript"></script>       
        <script type="text/javascript">
                $(document).ready(function () {
                    $('.map-btn').click(function(){
                        $('#myModal').show();
                        var mapx=$(this).attr('data-to');
                        var mapy=$(this).attr('data-po');
                         $(".gmap3").gmap3({
                         map:{
                         options:{
                         center: [mapx,mapy],
                                 zoom: 15
                         }
                         }, marker: {
                         latLng:[mapx,mapy]
                         }
                         });
                         });
                 });
    </script>
	<!-- /主体 -->
</body>
</html>